import { axios } from '~/plugins/axios';

// 获取列表
export const getEventsList = (params?: any) => axios({
  method: 'get',
  url: '/events/list',
  params,
}) as Promise<any>;

// 获取我的列表
export const getMyEventsList = (params?: any) => axios({
  method: 'get',
  url: '/events/myList',
  params,
}) as Promise<any>;

// 删除
export const handleEventsDelete = (params?: any) => axios({
  method: 'delete',
  url: `/events/${params as string}`,
}) as Promise<any>;

// 审核
export const handleAudit = (params?: any) => axios({
  method: 'post',
  url: `/events/update?${params as string}`,
}) as Promise<any>;
